<?php
/**
 * Created by PhpStorm.
 * User: Raytine
 * Date: 2018/8/30
 * Time: 16:39
 */
namespace PddWechat\Models\User\Service;

use PddWechat\Models\User\Data\WithdrawCashData;
use PddWechat\Models\User\Param\AckWithdrawParam;

class AckWithdraw
{

    public function __construct()
    {
        $this->withdrawCashData = new WithdrawCashData();
    }

    public function execute($basePageInfo)
    {
        /** @var AckWithdrawParam $params*/
        $params = $basePageInfo->params;
        $id = $params->id;
        return $this->withdrawCashData->updateStatusById($id);
    }
}